<template>
    <div>
        <van-card
  num="2"
  price="2.00"
  desc="描述信息"
  title="商品标题"
  thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg"
/>
<van-card
  num="2"
  price="2.00"
  desc="描述信息"
  title="商品标题"
  thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg"
/>
<van-card
  num="2"
  price="2.00"
  desc="描述信息"
  title="商品标题"
  thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg"
/>
<van-card
  num="2"
  price="2.00"
  desc="描述信息"
  title="商品标题"
  thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg"
/>
<van-card
  num="2"
  price="2.00"
  desc="描述信息"
  title="商品标题"
  thumb="https://fastly.jsdelivr.net/npm/@vant/assets/ipad.jpeg"
/>
    </div>
    <van-action-bar>
  <van-action-bar-icon icon="chat-o" text="客服" color="#ee0a24" />
  <van-action-bar-icon icon="cart-o" text="购物车" />
  <van-action-bar-icon icon="star" text="已收藏" color="#ff5000" />
  <van-action-bar-button type="warning" text="加入购物车" @click="cc"/>
  <van-action-bar-button type="danger" text="立即购买" />
</van-action-bar>
</template>

<script setup>
import { ref } from 'vue';
import router from '@/router';
import { useRoute } from 'vue-router';
let route=useRoute()
import { detailApi } from '@/api/api';
let detailApiData=ref([])
console.log(route.params.goods_id);

detailApi().then(res=>{
    detailApiData.value=res.data.message
    console.log(res.data.message);
    
})
const cc=()=>{
    router.push('/home/carc')
}
</script>

<style lang="scss" scoped>

</style>